package com.czxy.tanhua.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 爱吃豆的土豆、
 * @Date 2023/4/8 14:21
 */
@Data
@NoArgsConstructor
public class MovementVo implements Serializable {
    private String id;
    private Long userId;
    private String avatar;
    private String nickname;
    private String gender;
    private Integer age;
    private String[] tags;
    private String textContent;
    private String[] imageContent;
    private String distance;
    private String createDate;
    private Integer likeCount = 0;
    private Integer commentCount = 0;
    private Integer loveCount = 0;
    private Integer hasLiked ;
    private Integer hasLoved ;
    public MovementVo(String id, Long userId, String avatar, String nickname, String gender, Integer age, String[] tags, String textContent, String[] imageContent, String distance, String createDate, Integer likeCount, Integer commentCount, Integer loveCount, Integer hasLiked, Integer hasLoved) {
        this.id = id;
        this.userId = userId;
        this.avatar = avatar;
        this.nickname = nickname;
        this.gender = gender;
        this.age = age;
        this.tags = tags;
        this.textContent = textContent;
        this.imageContent = imageContent;
        this.distance = distance;
        this.createDate = new Date(Long.parseLong(createDate)).toLocaleString();
        this.likeCount = likeCount;
        this.commentCount = commentCount;
        this.loveCount = loveCount;
        this.hasLiked = hasLiked;
        this.hasLoved = hasLoved;
    }


}
